<?php
if (!defined('RAPIDLEECH'))
  {require_once("404.php");exit;}

$options = array(
 'disableadvanceeditor' => false, //for security reason, so you just can set access manualy
 'xpanel_filename' => 'xpanel.php', // u need to allow this file in your htaccess if needed
 
 'index_file' => 'index.php', //set index filename, incase you have a different name instead of index.php 
 
 'allowcpanel' => true, // WARNING, set this to FALSE will Disable access to xpanel.
 'loginCp' => array(''=>''), // user=>pass

 'login' => false,
 'users' => array('' => ''), // user=>pass
 
 #-LIMITATION-CONFIG
 'limitbyip' => false, //limit RL by IP; dont forget chmod 777 to folder tmp
 'maximum_free_downloads' => 5, //how many times it'll granted?
 'delay_per_ip' => 12, //(in hour) recycle allowable IP
 
 'auto_del_time' => 20, //(in hour) delete leeched file
 'limitsize' => 0, //(in MB) limit upper-bound of filesize
 'lowlimitsize' => 0, //(in MB) limit lower-bound of filesize
 
 'storage_limit' => 0, //(in MB) limit your server files storage.  1 * 1024 = 1 GB; 
 
 'downloadLimitbyip' => false, //limit RL by IP
 'downloadsPerIP' => 2, //how many times it'll granted?
 'downloadDelayPerIP' => 3600, //(in second)
 
 'audl' => 0, //how many link allow to auto-download work ?
 'auul' => 5, //how many file allow to auto-upload work ?
 
 'limitbytraffic' => false, //limit RL by Traffic Flow
 'max_trafic' => 81902, // (in MB). eg: 1 GB = 1 * (1024) MB
 'date_trafic' => '14/04/2020', // (d-day traffic quota expired). date in dd/mm/YYYY 
 'day_reset_trafic' => 1, // auto reset traffic. delay in days; 
 
 'limited_edition' => false, // limit authorization RL by ip address (banned and allowd list) 
 'list_allow_ip' => '127.0.0.1', // White list ip. eg. 111.111.111.111, 255.*.*.*  //--never blank this if you set config["limited_edition"] = true
 'list_baned_ip' => '', // blacklist ip, u think so?!. eg. 111.111.111.111, 222.*.*.*, 212.212.212.* 
 
 'limited_area' => false, // limit authorization RL by ID Country
 'allow_CID' => '', // White list Country ID, blank mean all country is allowed. eg. ID, MY; // allow only Indonesia And Malaysia
 'baned_CID' => '', // Blacklist Country ID, blank mean no country is banned. eg. US; // all country from US being banned.
 
 'limit_timework' => false, // limit your RL by time. Client's Current time depend on (Server timezone)
 'workstart' => '00:00:00', // Your RL start to work
 'workend' => '23:59:00', // Your RL end to work
 
 'limit_cpuload' => false, // limit cpu load and task server job
 'ServerLoadAllowed' => 0, // Maximum server load allowed; Disable = 0
 'CpuLoadFormat' => ((!function_exists('exec')&&!function_exists('shell_exec')) ? $options["CpuLoadFormat"] = 'percent':'load'), // Value = 'load' for load format; 'percent' for percent format
 'passthru_allowed' => (!function_exists('passthru')?false:true) OR FALSE, // Does your host allows passthru?
 
// 'MaxServerJob' => 10, // deprecated
 
 ###-FILE CONFIG
 'download_dir' => '0x14/', // Your downloaded files are saved here;
 'download_dir_is_changeable' => false, // To allow users to change the download dir ( index page )
 
 'maysaveto' => false, // allow users to change downloaded files to saved ( in audl )
 
 'forbidden_filetypes' => array('.htaccess', '.htpasswd', '.php', '.php3', '.php4', '.php5', '.phtml', '.asp', '.aspx', '.cgi'),
 'rename_these_filetypes_to' => '.xxx',
 'check_these_before_unzipping' => true,
 
 'disable_action' => false, //no action menus
 'disable_to' => array( // disabled action files properties
  'act_upload' => false,
  'act_ftp' => false,
  'act_mail' => false,
  'act_boxes' => false,
  'act_split' => false,
  'act_merge' => false,
  'act_md5' => false,
  'act_pack' => false,
  'act_zip' => false,
  'act_unzip' => false,
  'act_rename' => false,
  'act_mrename' => false,
  'act_delete' => false,
 ),
 'show_column_sfile' => array( // disabled action files properties
  'md5' => false,
  'downloadlink' => true,
  'comments' => false,
  'date' => true,
  'age' => true,
  'ip' => true,
 ),
 
 'show_all' => true,
 'bw_save' => true,
 
 'deletelink_in_lynx' => true,
 
 #Auto-Rename #
 'rename_prefix' => '', //eg. mysite => mysite_file_name.rar
 'rename_suffix' => '', //eg. mysite => file_name_mysite.rar
 'rename_underscore' => true, # true, replace spaces for underscores in file names
 'add_ext_5city' => '', //eg. ccpb => file_name.rar.ccpb
 
 'navi_left' => array(
  'showcpanel' => true,
  'showplugins' => true,
  'showaudl' => true,
  'showauul' => true,
  'showlynx' => true,
  'server_info' => true, 
 ),
 
 'forbid' => array(
  '_audl' => false,
  '_auul' => false,
  '_lynx' => false, 
 ),
 
 'cpuUsageNFO' => false,  // require server_info = true
 'OnlineVisitor' => true, //Show Online Visitor
 
 'premix_status' => true,  // enable acc premix status
 'ip_premixstat_list' => array('127.0.0.1'),  // trusted ip, can view detil acc.
 
 ###-MISC-CONFIG
 'no_cache' => false, 
 'redir' => true, 
 
 'disable_ajax' => false, //switch to old method, No-Ajax in Serverfiles
 'disable_ajaxren' => false, //toogle ajax instant rename. require: rsajax.js; rsajax_ren.js
 'logact' => true, //do log-activity
 'alternatefree' => true, //Auto switch freedownload if premium is not good
 'showautoclose' => true, //autoclose popup when leeching in audl
 'timeautoclose' => 250, 
 'autochecklink' => true, // Auto check submited link in audl
 
 'mip_enabled' => false, //If you need to disable multiple ip support, set to false
 'mip_arotate' => false, //Auto change to next ip after start transload process
 
 'iframealocate' => 10, //how many iframe to allocate in audl for manual method.
 //'pointboost' => 0, will deprecated
 'autosubmit' => true, 
 
 'timezone' => 0, // set Timezone. 0 Mean using time in UTC (GMT+0)
 'lang' => 'english', // set Language.
 
 'template_used' => 'indiestyle', // set Template for your RL.
 'csstype' => '_default', // set Skin/Theme to your RL. eg. _default
 
 
); // End Config ------


// -----
# DEFINE writable dir OR files
define('LOG_DIR', CONFIG_DIR.'logfile/');

define('FILES_LST',    LOG_DIR.'Rx08_2208081410_f1L3Z.lst');
define('IP_L33CH_L0G', LOG_DIR.'Rx08_2208081410_IP_L33CH_L0G.lst');
define('VISITOR_LST',  LOG_DIR.'Rx08_2208081410_v1zit0r.lst');
define('TRAFFIC_LST',  LOG_DIR.'Rx08_2208081410_tR4fic.txt');
define('LOG_PHP',      LOG_DIR.'Rx08_2208081410_d4Mn.log.php');
define('LASTLOG_LST',  LOG_DIR.'Rx08_2208081410_d4Mn_Last.txt');
define('MYUPLOAD_LST', LOG_DIR.'myuploads.txt');

?>